package proxy.staticProxy.proxy;

import proxy.staticProxy.base.ITeacherDao;
import proxy.staticProxy.real.TeacherDao;

public class TeacherDaoProxy implements ITeacherDao {

    private ITeacherDao teacherDao;

    public TeacherDaoProxy(ITeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teach() {
        System.out.println("Proxy start...");
        teacherDao.teach();
        System.out.println("Proxy end...");
    }
}
